Skip to content

trace-resources: move from cardano-node as hermod-trace-resources#14

Open
jutaro wants to merge 2 commits into
masterfrom
jutaro/with_resources
Open

trace-resources: move from cardano-node as hermod-trace-resources#14
jutaro wants to merge 2 commits into
masterfrom
jutaro/with_resources

Conversation

@jutaro

@jutaro jutaro commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Adds the hermod-trace-resources package, moved from IntersectMBO/cardano-node. The package provides cross-platform (Linux, macOS, Windows) OS-level resource sampling — CPU ticks, GC stats, memory (RSS/heap/live), network I/O, filesystem I/O, and thread count — for use by the node and tracer.

Two changes accompany the move:

Package name: trace-resources → hermod-trace-resources
Module namespace: Cardano.Logging.Resources.* → Hermod.Tracing.Resources.*
All source logic, platform-specific C bindings, cabal flags (with-netstat), tests, and benchmarks are preserved unchanged.

Changes
New package hermod-trace-resources/ with renamed cabal file and module tree under src/Hermod/Tracing/
cabal.project: add hermod-trace-resources
perSystem/packages.nix: expose library and test check
perSystem/project.nix: add -Werror -fno-ignore-asserts for new package
perSystem/devShells.nix: add package to dev shell

jutaro added 2 commits June 17, 2026 12:36
Adds the hermod-trace-resources package (moved from IntersectMBO/cardano-node).
Module namespace renamed from Cardano.Logging.Resources.* to Hermod.Tracing.Resources.*.
@jutaro jutaro marked this pull request as ready for review June 22, 2026 14:38
@jutaro jutaro requested a review from a team June 22, 2026 14:38
mgmeier
mgmeier previously approved these changes Jun 22, 2026

@mgmeier mgmeier left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a package import one-liner to the project-wide changelog.

```haskell
tr <- mkCardanoTracer trBase mempty ["Resources"] [EKGBackend]
configureTracers initialTraceConfig trDocumented [tr]
forM_ [1..] $ \_ -> do

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

straighten out hallucinations

@mgmeier mgmeier dismissed their stale review June 22, 2026 16:27

I wanted to request changes.

@mgmeier mgmeier left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 small issues, see above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants